package com.jisuan.contract.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jisuan.contract.common.utils.PageUtils;
import com.jisuan.contract.common.utils.Query;
import com.jisuan.contract.dao.ScSysUserDao;
import com.jisuan.contract.entity.ScSysUserEntity;
import com.jisuan.contract.service.ScSysUserService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("scSysUserService")
public class ScSysUserServiceImpl extends ServiceImpl<ScSysUserDao, ScSysUserEntity> implements ScSysUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScSysUserEntity> page = this.page(
                new Query<ScSysUserEntity>().getPage(params),
                new QueryWrapper<ScSysUserEntity>()
        );

        return new PageUtils(page);
    }

}